using System;
using System.Collections.Generic;
using System.Text;

namespace TidhiGanitam.DataModel
{
    [Serializable]
    public class YearDetails
    {
        private int m_Year;
        private Rasi m_IyanamsamuOnUgadi;
        private DateTime m_UgadiDate;
        private int m_NoOfDays;
        private int m_AdhikaMasamu;
        public int Year
        {
            get
            { return m_Year; }
            set
            { m_Year = value; }
        }
        public int AdhikaMasamu
        {
            get
            { return m_AdhikaMasamu; }
            set
            { m_AdhikaMasamu = value; }
        }
        public Rasi UgadiIyanamsamu
        {
            get
            { return m_IyanamsamuOnUgadi; }
            set
            { m_IyanamsamuOnUgadi = new Rasi(value); }
        }
        public DateTime UgadiDate
        {
            get
            { return m_UgadiDate; }
            set
            { m_UgadiDate = value; }
        }
        public int DaysInYear
        {
            get
            { return m_NoOfDays; }
            set
            { m_NoOfDays = value; }
        }
        public YearDetails()
        {
            m_Year = 0;
            m_IyanamsamuOnUgadi = new Rasi();
            m_UgadiDate = DateTime.Now;
            m_NoOfDays = 0;
            m_AdhikaMasamu = -1;
        }
        public YearDetails(YearDetails NewYearDetails)
        {
            m_Year = NewYearDetails.Year;
            m_IyanamsamuOnUgadi = new Rasi(NewYearDetails.UgadiIyanamsamu);
            m_UgadiDate = NewYearDetails.UgadiDate;
            m_NoOfDays = NewYearDetails.DaysInYear;
            m_AdhikaMasamu = NewYearDetails.AdhikaMasamu;
        }
    }
}
